const wearDao=require('../dao/wearDao');

async function findByKind(kind) {
    if (kind==null||kind=={}||kind==undefined||kind==[]){
        kind='kid';
    }
    try {
        //查询异服，能返回
        var data =await wearDao.findByKind(kind);
        return {success:true,wears:data};
    }catch (e) {
        不能查询
        return {success:false,msg:'database is error!!'};
    }
}

exports.findByKind=findByKind;